package com.example.demoone

fun main() {
    //Elvis运算符
    val str: String? = "hello"
    val length = str?.length ?: 0
    println(length)
}